/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';


const LIST_MAJORS = '/yoocaApi/common/listMajors'
const LIST_CLASSROOMS = '/yoocaApi/common/listClassrooms'
const LIST_COURSE_TYPES = '/yoocaApi/common/listCourseTypes'
const LIST_TEACHERS_BY_MAJOR_ID = '/yoocaApi/common/listTeachersByMajorId'


export async function listMajors(
) {
  return request<CommonAPI.Result<CommonAPI.ListMajorsResp>>(LIST_MAJORS, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
  });
}

export async function listClassrooms(
) {
  return request<CommonAPI.Result<CommonAPI.ListClassroomsResp>>(LIST_CLASSROOMS, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
  });
}

export async function listCourseTypes(
) {
  return request<CommonAPI.Result<CommonAPI.ListCourseTypeResp>>(LIST_COURSE_TYPES, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
  });
}


export async function listTeachersByMajorId(
  body?: CommonAPI.ListTeachersByMajorIdParam,
) {
  return request<CommonAPI.Result<CommonAPI.ListTeachersByMajorIdResp>>(LIST_TEACHERS_BY_MAJOR_ID, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: body,
  });
}
